#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
    FILE *fp = fopen("input.txt", "r");
    char buffer[1000];
    int len;

    char res[1000];
    int res_len = -1;

    if (fp == NULL)
    {
        printf("无法打开文件\n");
        return 1;
    }

    while (fgets(buffer, 1000, fp) != NULL)
    {
        len = strlen(buffer);
        if (len > res_len)
        {
            res_len = len;
            strcpy(res, buffer);
        }
    }

    if (res_len >= 0)
        puts(res);

    fclose(fp);
    return 0;
}